package com.tmeone.erpone.controller;


import com.tmeone.erpone.entity.JsonResult;
import com.tmeone.erpone.entity.TProductionLine;
import com.tmeone.erpone.service.ITProductionLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tmeone
 * @since 2021-04-22
 */
@RestController
public class TProductionLineController {
    @Autowired
    private ITProductionLineService productionLineService;

    //查询生产线表
    @GetMapping("/productionLines")
    public JsonResult getAll(){
        List<TProductionLine> list = productionLineService.list();
        return new JsonResult(1,list);
    }
}
